$(function () {
    $.ajax(
        {
            url:'/back/service/findInfo',
            type:'get',
            dataType:'json',
            data:{id:sessionStorage.getItem("serviceId"),
                loginName:sessionStorage.getItem("loginName")},
            success:function (res) {
                if(res.result=="notLogin"){
                    window.open("/html/login.html", "_top");
                }
                let data = res.data;

                $("#serviceName").html(data.serviceName);
                $("#type").html(data.dependenceObj);
                $("#flow").html(data.flow);
                $("#intro").html(data.intro);
                $("#price").html(data.price);
                $("#marketPrice").html(data.marketPrice);
                $("#face").attr('src',data.face)
                console.log(res);
            }
        }
    )
})